package com.huidao.domain;

import com.huidao.service.ActivityTypeService;
import com.huidao.service.VipCardService;

public class PrizeType {
	private static VIPCard vipCard = VipCardService.getVipCard();
	private static double total = ActivityTypeService.getTotal();

	/**
	 * @return the total
	 */
	public static double getTotal() {
		return total;
	}

	// 获取积分
	public void getVipIntegral() {
		if (vipCard==null) {
			System.out.println("谢谢惠顾，祝您下次好运");
			return;
		}
		vipCard.setVipIntegral(vipCard.getVipIntegral() + 500);
	}

	// 反现金
	public void getCash() {
		System.out.println("您获取返还现金3元的奖励");
	}

	// 返奖品
	public void getPrize() {
		System.out.println("恭喜您获得可乐一听的奖励");
	}
	//半价特惠
	public double getHalfPrice(){
		return total*0.5;
	}
	
	//谢谢惠顾
	public void Thanks(){
		System.out.println("谢谢惠顾，祝您下次好运");
	}
	/**
	 * @return the vipCard
	 */
	public static VIPCard getVipCard() {
		return vipCard;
	}
}
